/*
 * @(#)com.litta.liveaggregate.common.model.litta 2021/7/6 18:08
 * @Author <a href="mailto:xyqierkang@gmail.com">ErKang Qi</a>
 * @Blog：https://www.qekang.com
 * Copyright (c) 2019-2021 Shanghai
 * All rights reserved.

 * This software is the confidential and proprietary information of
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 */
package com.cloud.lan.entity.base.common;

import java.io.Serializable;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 分页出参
 * @author ErKang
 * @date Created in 2021/6/25 10:31
 * @title PageResult.java
 * Department: Product development
 */
@Getter
@Setter
@NoArgsConstructor
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = -300455228475131963L;
    /**
     * 页数
     */
    private Integer currentPage;
    /**
     * 每页条数
     */
    private Integer pageSize;
    /**
     * 总数
     */
    private Long count;
    /**
     * 数据
     */
    private T data;

    public PageResult(Integer currentPage, Integer pageSize, Long count, T data) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.count = count;
        this.data = data;
    }

}
